Removing nan from an string array within a dictionary